package com.loong.member.common.forehead.param;

import com.loong.common.validator.group.CommonValidate;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class CartForeheadParam {

    /**
     * 购物车id
     */
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 商家id
     */
    @NotNull(message = "商家id不能为空",groups = {CommonValidate.class})
    private Long sellerId;

    /**
     * 购物车状态，0(false)表示已结算，1(true)表示未结算
     */
    private Boolean cartStatus;

    /**
     * 餐盒费
     */
    private BigDecimal foodBoxFee;

    /**
     * 总价
     */
    private BigDecimal totalPrice;

    /**
     * 优惠
     */
    private BigDecimal discountPrice;

    /**
     * 实付价格
     */
    private BigDecimal payPrice;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date lastUpdateTime;
}